<?php
$Row			= $interfaces_class->GetByName('logo');
$ErrorQ 		= $func->GetSession('admin_fasle');
$func->DelSession('admin_fasle');
?>
<div class="dataTables db">
	<div class="dataTables_bar db">
    	<h5 class="title dib">Logo</h5>        
    </div><!--end dataTables_bar-->
    <div class="themuser db">
        <form class="form-centent" action="<?php echo $WEB_DOMAIN;?>/<?php echo $WEB_ADMIN;?>/index.php?u1=_logo" method="post">
        	<ul class="nd db">
            	<li>
                    <label class="span2 fl">&nbsp;</label>
                    <span class="errorq"><?php if(isset($ErrorQ)){echo $ErrorQ;}?>&nbsp;</span>
                </li>
            	<li>
                    <label class="span2 fl">
                    	<a href="<?php if(is_array($Row)){echo $Row[0]['content'];}?>" target="_blank">
                    		<?php if(is_array($Row)){?>
                            	<img class="max-logo" src="<?php echo $Row[0]['content'];?>" alt="logo">
							<?php }?>
                        </a>
                    </label>
                    <input name="content" type="text" class="span3" value="<?php if(is_array($Row)){echo $Row[0]['content'];}?>" id="ImageUrl" >
                    <input type="button" value="<?php echo $config_nc->Library;?>" id="btnSelectImg" name="" />					
                    <script type="text/javascript">
                        $(document).ready(function () {
                            $("#btnSelectImg").click(function () {
                                var finder = new CKFinder();
                                finder.selectActionFunction = function (fileUrl) {
                                    $('#ImageUrl').val(fileUrl);
                                };
                                finder.popup();
                            });
                        });
                     </script>
                </li>                
            </ul>
            <div class="form-actions db">      
            	<button type="submit"><?php echo $config_nc->Accept;?></button>    
            </div><!--end form-actions-->
        </form>
    </div>
</div><!--end dataTables-->